/**
 * 
 */
package com.tecnap.app;

import java.io.Serializable;

/**
 * This class is used to represent the entity "lamp"
 * in our database. (see: com.tecnap.app.database.DatabaseHelper.java)
 */
public class LampEntity implements Serializable {

	private static final long serialVersionUID = 1L;
	private int	ID;
	private String number;
	private String type;
	private String brand;
	private String power;
	private String model;
	private String comment;
	private float positionX;
	private float positionY;
	private String position;
	
	public LampEntity(){
		// TODO;
	}
	
	/**
	 * Constructor with all attributes
	 * @param ID : null if new Lamp
	 * @param number
	 * @param type
	 * @param brand
	 * @param power
	 * @param model
	 * @param comment
	 * @param positionX
	 * @param positionY
	 */
	public LampEntity( int ID, String number, String type, String brand, String power,
			String model, String comment, float positionX, float positionY ) {
		
		this.ID = ID;
		this.number = number;
		this.type = type;
		this.brand = brand;
		this.power = power;
		this.model = model;
		this.comment = comment;
		this.positionX = positionX;
		this.positionY = positionY;
	}
	
	public int getID() {
		return ID;
	}
	
	public float getPositionX() {
		return positionX;
	}

	public void setPositionX(float positionX) {
		this.positionX = positionX;
	}

	public float getPositionY() {
		return positionY;
	}

	public void setPositionY(float positionY) {
		this.positionY = positionY;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getPower() {
		return power;
	}

	public void setPower(String power) {
		this.power = power;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}
	
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getPosition() {
		return positionX + ", " + positionY ;
	}
}
